<div class="panes_vertical">
	<div class="box">	
		<form method="post" action="<{$APPLICATION_URL}>/Admin/Supplier/add" name="frmForm" enctype="multipart/form-data">
			<fieldset>
				<legend>Tao supplier</legend>															
				<p>
					<label>Tên nhà cung cấp</label>
					<input type='text' id='supplier_name' name='supplier_name' value='<{$supplier_name}>' class="textfield" style="width: 50%;" max-length="255">					
				</p>
				<p>
					<label>Địa chỉ nhà cung cấp</label>
					<input type='text' id='supplier_address' name='supplier_address' value='<{$supplier_name}>' class="textfield" style="width: 50%;" max-length="255">					
				</p>
				<p>
					<label>Điện thoại</label>
					<input type='text' id='phone' name='phone' value='<{$phone}>' class="textfield" style="width: 50%;" max-length="255">					
				</p>
				<p>
					<label>Website</label>
					<input type='text' id='website' name='website' value='<{$website}>' class="textfield" style="width: 50%;" max-length="255">					
				</p>
				<p>
					<label>Logo</label>
					<input type="file" id="a" name="logo" >	
						
				</p>
				<p>
					<input type="submit" name="submit" class="button" id="save" value=" Thêm " onclick="formSubmit();" />
					<input type="reset" name="reset" class="button" id="reset" value=" Reset " />
				</p>
			</fieldset>
		</form>
	</div>
</div>

<script type="text/javascript">
    function formSubmit()
    {
    	var theform = document.frmForm;
    	
    	// Check Name
    	var name = theform.name.value;
    	if (name == ''){
			alert('Name is invalid');
			theform.name.focus();
			return false;
    	} 	
    	var 

    	// Check status
    	var status = theform.status.value;
    	if (status == ''){
			alert('Status is invalid');
			theform.status.focus();
			return false;
    	}

    	theform.actionForm.value = 'submit';
    	theform.submit();
    	return true;
    }
    </script>